package com.educatioin.manage.web.system.repository;

import com.educatioin.manage.web.system.po.CustomerPo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

@RepositoryRestResource(collectionResourceRel = "customerRepository", path = "customerRepository")
public interface CustomerRepository  extends JpaSpecificationExecutor<CustomerPo>, PagingAndSortingRepository<CustomerPo, Long> {

    Page<CustomerPo> findByNameLike(String name, Pageable var1);

    CustomerPo findByName(String name);

    CustomerPo findByPhone(String phone);

    CustomerPo findByCode(String code);

}
